<div class="row">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
                <div class="widget-title  am-fl">消息处理</div>
                <div class="widget-function am-fr">
                        <a href="javascript:;" class="am-btn am-btn-default am-btn-xs go-back"><i class="am-icon-angle-left"></i> 返回</a>
                </div>
            </div>
            <div class="widget-body  am-fr">
            	<form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmit" reback="/a/wechat/message">
                  <input type="hidden" name="Id" id="Id" value="{{.m.Id}}">
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">标题：</label>
                      <div class="am-u-sm-9">
                      	<input name="Title" type="text" id="Title" maxlength="64" placeholder="长度不超过64" value="{{.m.Title}}" required/>
                        <small>长度不超过64。</small>
                      </div>
                  </div>
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">摘要：</label>
                      <div class="am-u-sm-9">
                      	<textarea class="" rows="3" id="Description" maxlength="120" placeholder="长度不超过120个字符" name="Description">{{.m.Description}}</textarea>
                        <small>120个字符</small>
                      </div>
                  </div>
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">封面图片：</label>
                      <div class="am-u-sm-9">
                        <div class="am-form-group am-form-file">
                          <button type="button" class="am-btn am-btn-danger am-btn-sm">
                            <i class="am-icon-cloud-upload"></i> 选择要上传封面图片（1280*543）</button>
                          <input id="inputImageUrl" name="inputImageUrl" type="file"/>
                        </div>
                        <div id="file-list">
                        	{{if .m.Image}}
                        	<input type="hidden" name="Image" value="{{.m.Image}}" />
                            <span class="am-badge am-badge-success">{{.m.Image}}</span> 
                            <a class="am-badge am-badge-primary" href="{{.m.Image}}" target="_blank">查看</a>
                            {{end}}
                        </div>
                      </div>
                  </div>
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">关键词：</label>
                      <div class="am-u-sm-9">
                      	<input name="Command" type="text" id="Command"  placeholder="请使用英文小写作为关键词" value="{{.m.Command}}" />
                        <small>用于微信发送消息时匹配，特殊命令：subscribe（订阅），binding（帐号绑定）</small>
                      </div>
                  </div>
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">消息类型：</label>
                      <div class="am-u-sm-9">
                        <label class="am-radio-inline">
                          <input type="radio" name="Typeid" class="radios" value="1" data-am-ucheck {{if eq .m.Typeid 1}}checked{{end}} required /> 内容
                        </label>
                        <label class="am-radio-inline">
                          <input type="radio" name="Typeid" class="radios" value="2" data-am-ucheck {{if eq .m.Typeid 2}}checked{{end}} required /> 链接地址
                        </label>
                      </div>
                  </div>
                  <div class="am-form-group" id="content-text">
                      <label class="am-u-sm-3 am-form-label">消息内容 ：</label>
                      <div class="am-u-sm-9" style="width: 760px;">
                      	<div id="editor">{{str2html .m.Content}}</div>
                      </div>
                      <textarea id="content" name="Content" style="display:none;">{{.m.Content}}</textarea>
                  </div>
                  <div class="am-form-group" id="content-url" style="display:none">
                      <label class="am-u-sm-3 am-form-label">链接地址：</label>
                      <div class="am-u-sm-9">
                         <input type="text" name="Url" id="ContentUrl" placeholder="链接地址必须是完整地址，http://www.aheye.cn/" value="{{.m.Url}}">
                         <small>需附带登录信息请加关键字：{openid}</small>
                      </div>
                  </div>
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label">关联消息：</label>
                      <div class="am-u-sm-9">
                         <input type="text" name="RelationIds" id="RelationIds" placeholder="ID号需用$分隔" value="{{.m.RelationIds}}">
                         <small>关联其它图文消息最多可填写8个，每关联ID号需要用“$”分隔，不填写则不关联。</small>
                      </div>
                  </div>
                  <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label"></label>
                      <div class="am-u-sm-9">
                      	<button class="am-btn am-btn-secondary" type="submit">确认提交</button>
                        <button class="am-btn am-btn-default" type="reset">重置</button>
                      </div>
                  </div>
                </form>
            </div>
        </div>
    </div>
</div>